Allow character set override when sending to Garmins.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 24 Jan 2010 15:55:55 +0000 (15:55 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 24 Jan 2010 15:55:55 +0000 (15:55 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3864 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/garmin.c

index f7f47d4ad52b87e4d0fe5b75a4bb21b7e7e57429..5e1288c3f9613c87808c7e2dac255376b6d1235e 100644 (file)
@@ -230,8 +230,12 @@ rw_init(const char *fname)
                fprintf(stderr, "Waypoint category type: %d\n",
                gps_category_type);
        }
-
        }
+
+       // Allow override of sent character set for internationalized GPSes.
+       if (global_opts.charset != &cet_cs_vec_utf8)
+               receiver_charset = xstrdup(global_opts.charset_name);
+
        /*
         * If the user provided a short_length, override the calculated value.
         */